package com.ruoyi.common.utils;

/**
 * @Description: api路径-参数转换器
 * @Author: wk
 * @Date: 2022/7/27 16:48
 * @Version: 1.0
 */
public class ApiUserUtils {
    /**
     * 替换字符串
     */
    public static String getCode(String code, String APPID, String REDIRECT_URI, String SCOPE) {
        return String.format(code, APPID, REDIRECT_URI, SCOPE);
    }

    /**
     * 替换字符串
     */
    public static String getWebAccess(String webAccessTokenhttps, String appId, String secret, String CODE) {
        return String.format(webAccessTokenhttps, appId, secret, CODE);
    }

    /**
     * 替换字符串
     */
    public static String getUserMessage(String userMessage, String access_token, String openid) {
        return String.format(userMessage, access_token, openid);
    }
}
